package com.example.yin.dao;

import com.example.yin.domain.RankSong;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
/*用户评分系统*/
public interface RankSongMapper {

    int deleteByPrimaryKey(Integer id);
    int insert(RankSong record);
    RankSong selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(RankSong record);
    int updateByPrimaryKey(RankSong record);
    int insertSelective(RankSong record);//给歌曲评分
    List<RankSong> selectScoreBySongId(Integer songId);//根据id搜索歌曲
    RankSong selectScoreBySongIdAndUserId(@Param("userId") Integer userId, @Param("songId") Integer songId);
}
